import request from 'axios'

const api_name = '/admin/system/index'

export default {
// 添加
  save(role) {
    return request({
      url: `${api_name}/save`,
      method: 'post',
      data: role
    })
  },
  //查询
getByName(adminName) {
  return request({
    url: `${api_name}/get/${adminName}`,
    method: 'get'
  })
}
}